package org.example.travel_web.dto.news;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "资讯请求")
public class NewsReq {
    /**
     * 文章 ID
     */
    @Schema(description = "文章 ID")
    private Integer articleId;

    /**
     * 文章标题
     */
    @Schema(description = "文章标题")
    @NotNull(message = "文章标题不能为空")
    private String title;

    /**
     * 文章内容
     */
    @Schema(description = "文章内容")
    @NotBlank(message = "文章内容不能为空")
    private String content;

    /**
     * 所属分类 ID
     */
    @Schema(description = "所属分类 ID")
//    @NotNull(message = "分类 ID 不能为空")
    private Integer categoryId;
}
